#ifndef __PE_Detect_C
#define __PE_Detect_C

#include "PE_Detect.h"

void PE_Detect_init(){
    GPIO_Config_T     configStruct;
	
    RCM_EnableAPB2PeriphClock(PE_RTC);
    /* Configure Button pin as input floating */
    configStruct.mode = GPIO_MODE_IN_FLOATING; //浮空输入
    configStruct.pin  = PE_PinId;
    GPIO_Config(PE_PinPort, &configStruct);  
	  
}


uint8_t PE_get_level(){
	  return GPIO_ReadInputBit(PE_PinPort, PE_PinId);
}


#endif
